<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css"/>
	<style type="text/css">
		.body{
			padding-top:60px;
		
		}
	
	</style>
</head>
<body class="body">
	
	<div class="container">
	  <div class="row">
	  
		 <!-- 导入左侧部分 -->
		<jsp:include page="side.jsp">
			<jsp:param value="idea" name="tag"/>
		</jsp:include>
		
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">

					<a href="idea.jsp"><i class="icon-fire"></i>想法</a>>${idea.title}
				</li>
				
			</ul>
			<div class="well" style="margin-top:0px;background-color:#FFF;border: 1px solid #DDDDDD;" >
				  <div class="page-header">
					<h3>${idea.title}&nbsp;&nbsp;<small>${idea.user.name }发布于 ${idea.createtime} </small></h3>
				  </div>
				  <p>${idea.content}</p>

				  
				  <div class="line">
					评论
				  </div>
				
				  
				  <form action="idea.jspx?m=comment&ideaid=${idea.id}" method="post">
					<textarea name="content"   id="" class="span8" rows="5">
							
					</textarea>
					<br/>
					<button class="btn">发布</button>
				  </form>
				  <c:if test="${empty IdeaCommentList}">
				  	 weikong
				  </c:if>
				  
				 <c:forEach items="${IdeaCommentList}"  var="ideacomment">
				<blockquote>
				  
				  <p style="font-size:14px;line-height:1.5;">${ideacomment.content}</p>
				 
				  <small>
					${ideacomment.user.name}   ${ideacomment.createtime}
					
					<a href="idea.jspx?m=update&id=${ideacomment.id}" title="编辑"><i class="icon-pencil"></i></a>
				    <a href="idea.jspx?m=delete&id=${ideacomment.id}" title="删除"><i class="icon-trash"></i></a>
				  </small>
				</blockquote>
		        </c:forEach>
				
				<a href="idea.jspx">←返回想法列表</a>
			</div>
		</div>
	  </div>
	</div>

</body>
</html>